// router.js
import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(), // 使用 HTML5 History 模式
  routes: [

    {
      path: '/index',
      name: 'index',
      component: () => import('../views/index.vue'),
      meta: { breadcrumb: '首页' }
    },
    {
      path: '/department',
      name: 'department',
      component: () => import('../views/department.vue'),
      meta: { breadcrumb: '部门管理' }
    },
    {
      path: '/product',
      name: 'Product',
      component: () => import('../views/Product.vue'),
      meta: { breadcrumb: '产品管理' }
    },
    {
      path: '/brand',
      name: 'brand',
      component: () => import('../views/brand.vue'),
      meta: { breadcrumb: '品牌管理' }
    }
  ]
});

export default router;
